package com.czr.dao.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.czr.dao.entity.CzrUser;
import com.czr.vo.CzrUserVo;
import com.czr.dto.Search;
import com.czr.dto.VerifyParam;
import com.czr.dto.WxParam;
import com.czr.vo.Result;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 */
public interface CzrUserService extends IService<CzrUser> {

    Result<Map<String,Object>> login(String username, String password,Integer isLoginType) throws Exception ;
    Result<Object> getUserInfo(Integer userId) throws Exception ;

    Result<Map<String,Object>> register(CzrUser czrUser) throws Exception ;

    Result<Object> list(Search search) throws Exception ;

    Result<Map<String,Object>> update(CzrUser czrUser) throws Exception ;

    Result<Map<String,Object>> updatePwd(CzrUserVo czrUserVo) throws Exception ;


    Result<Object> about_select() throws Exception ;

    Result<Object> about_update(String content) throws Exception ;

    Result<Map<String,Object>> adminLogin(String username, String password,Integer isLoginType) throws Exception ;

    Result<Map<String,Object>> updateAdminPwd(Integer userId,String password,JSONObject cacheToken) throws Exception ;

    Result<Map<String,Object>> deladmin(Integer userId) throws Exception ;
}
